package com.wongsir.tiny_spring_reproduce.beans;

import java.util.HashMap;
import java.util.Map;

import com.wongsir.tiny_spring_reproduce.core.io.ResourceLoader;

/**
 * 从配置中读取BeanDefinition
 * @author wongsir
 * @date 2018年8月27日
 */
public abstract class AbstractBeanDefinitionReader extends BeanDefinition {
	
	private Map<String,BeanDefinition> registry;
	
	private ResourceLoader resourceLoader;

	public AbstractBeanDefinitionReader(ResourceLoader resourceLoader) {
		this.registry = new HashMap<String,BeanDefinition>();
		this.resourceLoader = resourceLoader;
	}
	
	public Map<String,BeanDefinition> getRegistry(){
		return registry;
	}
	
	public ResourceLoader getResourceLoader() {
		return resourceLoader;
	}
	
}
